import dayjs from 'dayjs'
import { createApp } from 'vue'
import 'ant-design-vue/dist/antd.css'
import { token } from './utils/token'
import App from './views/App'
import Login from './views/Login'


const bootstrap = () => {

  const duration = require('dayjs/plugin/duration')
  dayjs.extend(duration)

  let rootComponent = token.get() ? App : Login

  createApp(rootComponent).mount('#app')
}

bootstrap()


